package com.py.article.controller.v1;

import com.py.article.service.ArticleCollectionBehaviorService;
import com.py.model.article.dtos.CollectionBehaviorDto;
import com.py.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ArticleCollectionBehaviorController
 * @Description TODO
 * @Author AXing
 * @Date 2022/11/17 13:31
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/v1")
public class ArticleCollectionBehaviorController {

    @Autowired
    private ArticleCollectionBehaviorService behaviorService;

    @PostMapping("/collection_behavior")
    public ResponseResult collectionArticle(@RequestBody CollectionBehaviorDto dto){
        return behaviorService.collectionArticle(dto);
    }
}
